<template>
  <div class="records">
    <div class="records_content">
      <!-- <ul class="tab cf">
        <li class="tab_item" v-bind:class="{active: isActive}" v-on:click="switchTab">
          <router-link to="/detail">战绩详情</router-link>
        </li>
        <li class="tab_item" v-bind:class="{active: !isActive}" v-on:click="switchTab">
          <router-link to="/review">战绩回放</router-link>
        </li>
      </ul> -->
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      isActive: true
    };
  },
  methods: {
    switchTab() {
      this.isActive = !this.isActive;
    }
  }
};
</script>


<style scoped>
.records {
  background: url("../images/bg.png");
  background-size: 100% 100%;
  height: 100%;
  padding: 0.22rem;
  widows: 100%;
}

.records_content {
  background-color: rgba(18, 69, 107, 0.1);
  border-radius: 0.1rem;
  box-shadow: 0 0 0.2rem #2eaee1;
  height: 100%;
  width: 100%;
}

.tab_item {
  background-color: #001523;
  float: left;
  font-size: 0.32rem;
  height: 0.7rem;
  line-height: 0.7rem;
  width: 50%;
  text-align: center;
}
.tab .active {
  background: url("../images/tab_bg.png") no-repeat;
  background-size: cover;
  color: #fff;
}

.tab .active a {
  color: #fff;
}

a {
  color: #a2a1a1;
  display: block;
}
a:active {
  color: #fff;
}
</style>
